/*
 * Copyright 2003-2005 (c) Live Media Pty Ltd. <argot@einet.com.au> 
 *
 * This software is licensed under the Argot Public License 
 * which may be found in the file LICENSE distributed 
 * with this software.
 *
 * More information about this license can be found at
 * http://www.einet.com.au/License
 * 
 * The Developer of this software is Live Media Pty Ltd,
 * PO Box 4591, Melbourne 3001, Australia.  The license is subject 
 * to the law of Victoria, Australia, and subject to exclusive 
 * jurisdiction of the Victorian courts.
 */
 
 
 #include <meta/TypeMeta.h>

#include "TestTypeElement.h"

type_name test_type_element_name = { "test" };

static int test_type_element_bind( type_element * element, type_definition * definition )
{
	int rc;
	
	rc = type_object_bind( &element->object, definition->library, &meta_basic_name );
	if ( rc != TYPE_OK ) return rc;

	rc = type_element_bind( element, definition );
	if ( rc != TYPE_OK ) return rc;
	
	return TYPE_OK;
}



void test_type_element_init( test_type_element * element )
{
	type_element_init( &(element->element), &test_type_element_bind );
}

int test_type_element_reader( type_input_stream * in, type_element * element )
{
	return 0;	
}

int test_type_element_writer( type_output_stream * out, void * o, type_element * element )
{
	return 0;
}
